/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.jeeplus.modules.infor.entity.Project;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 部门Entity
 * @author 李超辉
 * @version 2017-11-22
 */
public class Department extends DataEntity<Department> {
	
	private static final long serialVersionUID = 1L;
	private Project project;		// 项目
	private String code;		// 部门代码
	private String name;		// 部门名称
	private String person;		// 部门联系人
	private String phone;		// 联系人电话
	private String status;		// 是否启用
	
	public Department() {
		super();
	}

	public Department(String id){
		super(id);
	}

	@ExcelField(title="项目", fieldType=Project.class, value="", align=2, sort=1)
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}
	
	@ExcelField(title="部门代码", align=2, sort=2)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="部门名称", align=2, sort=3)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="部门联系人", align=2, sort=4)
	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}
	
	@ExcelField(title="联系人电话", align=2, sort=5)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@ExcelField(title="是否启用", align=2, sort=6)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}